import request from '@/utils/request'

// 查询驿站标签列表
export function listDelvTag(query) {
  return request({
    url: '/taskhub/delvTag/list',
    method: 'get',
    params: query
  })
}

// 查询驿站标签详细
export function getDelvTag(id) {
  return request({
    url: '/taskhub/delvTag/' + id,
    method: 'get'
  })
}

// 新增驿站标签
export function addDelvTag(data) {
  return request({
    url: '/taskhub/delvTag',
    method: 'post',
    data: data
  })
}

// 修改驿站标签
export function updateDelvTag(data) {
  return request({
    url: '/taskhub/delvTag',
    method: 'put',
    data: data
  })
}

// 删除驿站标签
export function delDelvTag(id) {
  return request({
    url: '/taskhub/delvTag/' + id,
    method: 'delete'
  })
}

// 批量更新
export function updateDelvTagBatch(data) {
  return request({
    url: '/taskhub/delvTag/editBatch',
    method: 'put',
    data: data
  })
}
